<?php session_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Registro de Usuario</title>
		<link rel="stylesheet" type="text/css" href="css/estiloRegistro.css">
		<link rel="stylesheet" type="text/css" href="css/estiloMenu.css">
		<link rel="stylesheet" type="text/css" href="css/estiloWeb.css">
		<script type="text/javascript" src="javascript/validaRegistro.js"></script>
		
	</head>
	<body>
		<div id="contenedor">
			<div id="cabecera">			
				 <?php include ("includes/menuContactoSinLogin.php"); ?>
			</div>
			<div class="bordeOscuro"></div>
			<div id="cuerpo">
				<h3>Para registrarse, rellene <cite>todos</cite> los campos:</h3>
				<form onSubmit="return procesaFormulario();" action="trata_registro.php" method="post" enctype="multipart/form-data">
					<div id="personalData">
						<fieldset>
							<legend align="left">Datos personales:</legend>
							<label class="memolatulabel" id="label_nombre" for="nombre">Nombre:</label>
							<input id="nombre" name="Nombre" size="25" maxlength="40" title="Juan"/>
							<div id="div_error1" class="error_Boom"><img id="img1" src="" width="16" height="16"></div>
							<br />
							<label class="memolatulabel" id="label_apellido" for="apellido">Apellidos:</label>
							<input id="apellido" name="Apellidos" size="25" maxlength="40" title="Ej: Ayala Montesino"/>
							<div id="div_error2" class="error_Boom"><img id="img2" src="" width="16" height="16"></div>
							<br />
							<label class="memolatulabel" id="label_direccion" for="direccion">Dirección:</label>
							<input id="direccion" name="Direccion" size="25" maxlength="100" title="Ej: Real 9"/>
							<div id="div_error3" class="error_Boom"><img id="img3" src="" width="16" height="16"></div>
							<br />
							<label class="memolatulabel" id="label_email" for="email">Email:</label>
							<input id="email" name="Email" size="25" maxlength="40" title="Ej: nombre@hotmail.com"/>
							<div id="div_error4" class="error_Boom"><img id="img4" src="" width="16" height="16"></div>
						</fieldset>
					</div>
					<div id="userData">
						<fieldset>
							<legend align="left">Datos usuario:</legend>
							<label class="memolatulabel1" id="label_dni" for="dni">Numero DNI:</label>	
							<input id="dni" name="Dni" size="8" maxlength="8" title="Ej: 14356181"/> -
							<input id="letra" name="Letra" size="1" maxlength="1" title="Ej: A"/>
							<div id="div_error5" class="error_Boom"><img id="img5" src="" width="16" height="16"></div>
							<br />
							<label class="memolatulabel1" id="label_contra" for="contra">Contraseña:</label>	
							<input id="contra" name="Contraseña" type="password" size="16" maxlength="40" title="Minimo 6 caracteres"/>
							<div id="div_error6" class="error_Boom"><img id="img6" src="" width="16" height="16"></div>
							<br />
							<label class="memolatulabel1" id="label_valcontra" for="valcontra">Validar contraseña:</label>	
							<input id="valcontra" name="ValidaContra" type="password" size="16" maxlength="40" title="Minimo 6 caracteres"/>
							<div id="div_error7" class="error_Boom"><img id="img7" src="" width="16" height="16"></div>
						</fieldset>
					</div>
					<input class="memolatuboton" type="submit" id="regist" value="Registrarse" />
				</form>
				
			</div>
		<?
				$errores=$_SESSION["errores"];
				if(isset($errores)){
					foreach($errores as $error){
						//echo "<div class='error'>";
						echo $error;
						echo "<br />";
						//echo "</div>";
					}
				}$errores=null;
				$_SESSION["errores"]=$errores;
			?>
			<?php include ("includes/pie.html");?>
		</div>
	</body>
</html>
